package basic.arch.component.lock.distributed.mysql.service;

import java.util.List;

import basic.arch.component.lock.distributed.mysql.mapper.Lock;

public interface LockService {
    
    public boolean insertIfAbsent(String type);
    
    public long selectLastId(String type);
    
    public void deleteLock(String type);
    
    public List<Lock> findAll();
}
